﻿#include "usher.h"

#include "../../include/itframework.h"
#include "../../include/itlogger.h"
#include "../../include/itcommon.h"
extern "C" __declspec(dllexport) ITModelBase* GetInstance(ITFramework *pFrame)
{
    Usher *pUsher = Usher::GetInstance();
    pUsher->SetFramework(pFrame);
    return dynamic_cast<ITModelBase*>(pUsher);
}

void Usher::SetFramework(ITFramework *pFrm)
{
    m_pFramework = pFrm;
    m_pFramework->GetLogger(&m_pLogger);
    m_pFramework->GetCommon(&m_pcommon);
}

Usher::Usher()
{
    qDebug() << "Usher::Usher()";
}

Usher::~Usher()
{
    qDebug() << "Usher::~Usher()";
}

T_BEGIN_MAP(Usher)

T_END_MAP
